#pragma once
#include <string>

class CPlayerBasic
{
public:
	CPlayerBasic() {

	}
	~CPlayerBasic() {

	}

	virtual void PlayFullSize(const wchar_t* videosize) {

	}

	virtual void CloseVoid() {

	}

	virtual void SetHandle(const wchar_t* handle) {

	}

	bool IsClose() {
		return isclose_;
	}

	int IsPause() {
		return ispause_;
	}

	bool IsExistFullWindow() {
		return isexistsfullwindow_;
	}

	int GetScreenID() {
		return screenid_;
	}

	bool GetPrimary() {
		return primary_;
	}

	RECT GetFormRect() {
		return formrect_;
	}

	HANDLE GetMainWindow() {
		return mainwindow_;
	}

	HANDLE GetMainHandle() {
		return mainhandle_;
	}

	HANDLE GetUpupooHandle() {
		return upupoohandle_;
	}

	HANDLE GetPlayerHandle() {
		return playerhandle_;
	}

	HANDLE GetPlayerVideoHandle() {
		return playervideohandle_;
	}

	std::wstring GetUrl() {
		return url_;
	}

	float GetPlaySpeed() {
		return playspeed_;
	}

	int GetPlayState() {
		return playstate_;
	}

	int GetVolumn() {
		return volume_;
	}

	int GetPlayRepeatType() {
		return playrepeattype_;
	}

	void SetIsExistFullWindow(bool value) {
		isexistsfullwindow_ = value;
	}

	void SetPlayerHandle(HANDLE handle) {
		playerhandle_ = handle;
	}
	void SetPlayerVideoHandle(HANDLE handle) {
		playervideohandle_ = handle;
	}
	virtual void SetUrl(const wchar_t* url) {
		url_ = url;
	}
	virtual void SetPlaySpeed(float value) {
		playspeed_ = value;
	}
	virtual void SetPlayState(int value) {
		playstate_ = value;
	}
	virtual void SetVolumn(int value) {
		volume_ = value;
	}
	virtual void SetPlayRepeatType(int value) {
		playrepeattype_ = value;
	}
	virtual void SetFormRect(const RECT& rect) {
		formrect_ = rect;
	}
	virtual void SetIsClose(bool value) {
		isclose_ = value;
	}
	virtual void SetUpupooHandle(HANDLE value) {
		upupoohandle_ = value;
	}
	virtual void SetScreenID(int value) {
		screenid_ = value;
	}
	virtual void SetPrimary(bool value) {
		primary_ = value;
	}
	virtual void SetIsPause(int value) {
		ispause_ = value;
	}

protected:
	HANDLE mainwindow_ = NULL;
	HANDLE mainhandle_ = NULL;
	HANDLE playervideohandle_ = NULL;
	HANDLE playerhandle_ = NULL;
	std::wstring url_;
	int playstate_ = 0;
	float playspeed_ = 0.0f;
	int volume_ = 0;
	int ispause_ = 0;
	__int64 timer_ = 0;
	float dur_ = 0.0f;

protected:
	bool isclose_= false;
	bool isexistsfullwindow_ = false;
	int playrepeattype_ = 0;
	HANDLE upupoohandle_ = NULL;
	int screenid_ = 0;
	bool primary_ = false;
	RECT formrect_ = {0};
};

